#include "StdAfx.h"
#include "PickableItem.h"
#include "Level.h"
#include "CubePhysX.h"
#include "NxActor.h"
#include "Character.h"
#include "NxShape.h"

PickableItem::PickableItem(PhysX* physics,int id,D3DXVECTOR3 position,LevelElement* object, bool rotate):
	m_ID(id),
	m_Position(position),
	m_pObject(object),
	m_Rotate(rotate),
	m_yRot(0),
	m_pPhysX(physics)
{
	
}

PickableItem::~PickableItem(void)
{
	delete m_pObject;
	delete m_pTrigger;
}


void PickableItem::Tick(const InputState& inputState)
{

}
	
void PickableItem::Draw(const RenderContext* context) {
	if ( m_pObject )
		m_pObject->Draw(context);
}

void PickableItem::Initialize(ContentManager* manager)
{

}

void PickableItem::OnTriggerEnter(Character* player)
{

}

void PickableItem::OnTriggerExit(Character* player)
{
	
}

void PickableItem::DisableTrigger()
{

}